import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';

@Component({
  selector: 'app-wyy-layer-default',
  template: `
    <div class="cnzt">
      <div class="select-log">
        <div class="mid-wrap">
          <!--<div class="pic">-->
            <!--<img src="../../../assets/images/platform.png" />-->
          <!--</div>-->
          <div class="methods">
            <!--<button-->
              <!--nz-button-->
              <!--nzType="primary"-->
              <!--nzSize="large"-->
              <!--nzBlock-->
              <!--(click)="onChangeModalType.emit('loginByPhone')"-->
              <!--&gt;手机号登录</button>-->
            <div class="pic" *ngIf="qrCodeImg">
              <img appImgDefault [src]="qrCodeImg" [alt]="qrCodeImg" />
              <h6>提示：请使用网易云音乐App扫码登录</h6>
              <nz-button>刷新</nz-button>
            </div>
          </div>
        </div>
      </div>
    </div>
  `,
  styleUrls: ['./wyy-layer-default.component.less'],
  changeDetection: ChangeDetectionStrategy.OnPush
})
export class WyyLayerDefaultComponent {
  @Input() qrCodeImg = null;
  @Output() onChangeModalType = new EventEmitter<string>();
  constructor() { }
}
